package com.scau.wrongtitle.util;

import com.scau.wrongtitle.bean.UserSubjectInfo;

import java.math.BigInteger;
import java.util.Map;

public class Convert {
    public static UserSubjectInfo mapToUserSubjectInfo(Map<String, Object> map){
        UserSubjectInfo info = new UserSubjectInfo();
        info.setQuestion_subject((String) map.get("question_subject"));
        info.setSubject_sum(((BigInteger)map.get("subject_sum")).intValue());
        return info;
    }
}
